package cn.gddevon.beans.aop;

/**
 * xml开启切面支持后所用的类
 */
public class OnAspect {
    // 指定扫描包名
    private String classes;
    //
    private static OnAspect onAspect;

    private OnAspect(){};

    public void setClasses(String classes) {
        this.classes = classes;
    }

    public String getClasses() {
        return classes;
    }

    public static OnAspect getInstance(String classes) {
        if(onAspect == null){
            synchronized (OnAspect.class){
                if(onAspect == null){
                    onAspect = new OnAspect();
                    onAspect.setClasses(classes);
                }
            }
        }
        return onAspect;
    }
}
